package com.lintf.nacos;

import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author lin tingfeng
 * @ system Mac
 * @ data 2025/3/20 15:28
 * @ package_name com.lintf
 * @ project_name spring-ai
 * @ desc
 */
@ComponentScan("com.lintf.nacos")
@EnableNacosConfig(globalProperties = @NacosProperties(serverAddr = "localhost:8848"))//开启nacos配置
@NacosPropertySource(dataId = "spring-nacos-config", autoRefreshed = true)//配置文件
public class MainConfig {
}
